# -*- coding: utf-8 -*- 
# 作者:飞虎
# 开发时间:2022/5/23 21:32
from PyQt5.Qt import *


class Window(QWidget):
	def __init__(self):
		super().__init__()
		self.setWindowTitle('级联和冲突的学习')
		self.resize(500, 500)
		self.setup_ui()

	def setup_ui(self):
		btn1 = QPushButton("b1",self)
		btn1.setObjectName('b1')
		btn2 = QPushButton("b2",self)
		btn2.setObjectName('b2')


		btn1.move(100,100)
		btn2.move(200,200)

		self.setStyleSheet("""

			QPushButton{
				color:red;
			}
			QAbstractButton{color:gray;}
			

			
		""")


if __name__ == '__main__':
	import sys

	app = QApplication(sys.argv)
	window = Window()
	window.show()
	sys.exit(app.exec_())